<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			
			//1.算数运算符
			// + - * / % ++ --
			
			//2.字符串运算符
			//+ +=
			
			//关系运算符
			//> >= < <= == === != !===
			//==   判断内容不判断类型
			//===  判断内容且判断类型
			console.log(1==1);//true
			console.log(1=="1");//true
			console.log(1===1);//true
			console.log(1==="1");//false
			
			console.log(100!=100);//false
			console.log(100!==100);//false
			console.log(100!="100")//false
			console.log(100!=="100")//true
			
			//4.赋值运算符
			//= += -= *= /= %=
			
			//5.逻辑运算符
			//&& || ！
			
			//6.条件运算符
			//条件表达式？结果1:结果2
			
			//7.逗号运算符
			var a,b,c,d;
			d=(a=1,b=2,c=3)
			console.log("a="+a)//1
			console.log("b="+b)//2
			console.log("c="+c)//3
			console.log("d="+d)//3
			
			//8.typeof运算符 获取数据类型
			console.log(typeof a)//number
			console.log(typeof "123")//string
			console.log(typeof (1==1))//boolean
			console.log(typeof (1/0))
			console.log(typeof (0/0))
			var e;
			console.log(typeof e)//undefined
		</script>
	</body>
</html>
